CSS设计规范(1)基础设置

基础设置

基础交互设置

设置全局的CSS样式,避免图中的长按弹出菜单与选中文本的行为

a, img {
    -webkit-touch-callout:none; /* 禁止长按链接与图片弹出菜单 */
}
html, body {
    -webkit-user-select:none;   /* 禁止选中文本(如无文本选中需求,此为必选项) */
    user-select:none;
}

设置全局css样式,避免连续的纯英文或者数字不换行

body {word-wrap:break-word;}

Reset.css

html, body, div, span, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,a,address,
em, img, ol, ul, li, fieldset, form, label, legend, table, tbody, tfoot, thead, tr, th, td,i,b,s {
    margin:0; padding:0; border:0; font-weight:inherit; font-style:inherit; font-size:100%;font-family: Helvetica,Arial,sans-serif;
}

ul,ol{list-style: none}
a img { border:none;vertical-align: top; }
a {text-decoration: none;}

button {overflow:visible;padding:0;margin:0;border:0 none;background-color:transparent;}
button::-moz-focus-inner { padding:0;}

textarea,input{background:none;padding:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-appearance:none;}
input[type=password] {-webkit-text-security:disc;}
textarea:focus,input:focus,button:focus{outline:none;}
body {word-wrap:break-word;}
* {-webkit-tap-highlight-color:rgba(0,0,0,0);}

/*==============================
 * Title: Hybrid reset
 * Description: 独立版、结合版内嵌H5页面需要禁止选中文本、禁止长按弹出系统菜单
 * @author: Cheung
 * Time:2015.03.25 Update
=================================*/

/* 全局禁止选中文本 */
.hybrid {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* 禁止长按链接与图片弹出菜单 */
.hybrid a,.hybrid img {-webkit-touch-callout:none;}


3,127 thoughts on “CSS设计规范(1)基础设置”

  • I’ve been browsing online more than 3 hours today, but I by no means found any interesting article like yours. It is beautiful value sufficient for me. Personally, if all web owners and bloggers made just right content material as you did, the internet will be much more helpful than ever before.

  • One thing I’ve noticed is the fact that there are plenty of misconceptions regarding the banks intentions when talking about home foreclosure. One fantasy in particular is always that the bank would like your house. Your banker wants your hard earned money, not the home. They want the bucks they loaned you together with interest. Preventing the bank will undoubtedly draw a new foreclosed realization. Thanks for your publication.

  • Thanks for giving your ideas with this blog. Also, a fantasy regarding the banks intentions any time talking about property foreclosure is that the traditional bank will not have my payments. There is a specific amount of time which the bank requires payments here and there. If you are also deep inside hole, they may commonly require that you pay the particular payment fully. However, that doesn’t mean that they will have any sort of payments at all. Should you and the traditional bank can be capable to work anything out, a foreclosure procedure may end. However, when you continue to miss payments underneath the new system, the property foreclosure process can just pick up where it was left off.

  • In these days of austerity as well as relative stress about incurring debt, most people balk up against the idea of utilizing a credit card to make purchase of merchandise or pay for any occasion, preferring, instead only to rely on the particular tried along with trusted means of making payment – raw cash. However, if you possess the cash there to make the purchase in whole, then, paradoxically, that is the best time to use the card for several causes.

  • I’ve really noticed that credit score improvement activity needs to be conducted with tactics. If not, you might find yourself destroying your ranking. In order to realize your aspirations in fixing your credit history you have to take care that from this time you pay any monthly dues promptly prior to their scheduled date. It’s really significant on the grounds that by not accomplishing this, all other measures that you will decide to try to improve your credit ranking will not be efficient. Thanks for revealing your ideas.

  • One thing I’d really like to say is that often car insurance cancellations is a feared experience and if you are doing the proper things as a driver you simply will not get one. Many people do get the notice that they’ve been officially dropped by their own insurance company and many have to fight to get added insurance after having a cancellation. Low-cost auto insurance rates are generally hard to get from cancellation. Having the main reasons regarding auto insurance canceling can help drivers prevent losing one of the most essential privileges obtainable. Thanks for the thoughts shared by your blog.

  • I do like the manner in which you have framed this particular difficulty and it really does give us some fodder for consideration. Nonetheless, coming from what precisely I have personally seen, I simply just trust as the reviews stack on that people today continue to be on issue and not start upon a soap box of the news of the day. Still, thank you for this fantastic point and whilst I can not really go along with this in totality, I regard your point of view.

  • I have come to understand that expenses for online degree professionals tend to be a great value. For instance a full Bachelors Degree in Communication from The University of Phoenix Online consists of 60 credits with $515/credit or $30,900. Also American Intercontinental University Online provides a Bachelors of Business Administration with a whole program feature of 180 units and a worth of $30,560. Online learning has made getting the education been so detailed more than before because you can earn your own degree in the comfort of your abode and when you finish working. Thanks for other tips I have learned from your website.

  • Thanks for your article. I also feel that laptop computers have become more and more popular nowadays, and now are often the only kind of computer utilised in a household. This is because at the same time actually becoming more and more affordable, their computing power is growing to the point where they can be as robust as desktop computers out of just a few years back.

  • Thanks for the tips on credit repair on this excellent web-site. The things i would offer as advice to people should be to give up the particular mentality they will buy now and pay out later. As a society all of us tend to repeat this for many things. This includes vacations, furniture, as well as items we’d like. However, you should separate the wants from the needs. When you are working to raise your credit score you really have to make some trade-offs. For example it is possible to shop online to economize or you can check out second hand suppliers instead of expensive department stores to get clothing.

  • Thanks for discussing your ideas with this blog. In addition, a fairy tale regarding the banking companies intentions while talking about home foreclosure is that the financial institution will not have my repayments. There is a certain amount of time which the bank requires payments every now and then. If you are also deep inside hole, they may commonly call that you pay the payment 100 . However, that doesn’t mean that they will have any sort of payments at all. Should you and the standard bank can have the ability to work something out, the foreclosure approach may cease. However, if you continue to skip payments beneath new approach, the home foreclosure process can pick up where it left off.

  • Thanks for this glorious article. Also a thing is that the majority of digital cameras come equipped with a zoom lens that enables more or less of the scene to get included by simply ‘zooming’ in and out. All these changes in {focus|focusing|concentration|target|the a**** length will be reflected from the viewfinder and on substantial display screen right at the back of the very camera.

  • Thanks for your posting. I also think laptop computers are becoming more and more popular these days, and now tend to be the only type of computer utilized in a household. This is due to the fact that at the same time that they are becoming more and more affordable, their processing power is growing to the point where they are as powerful as desktop computers from just a few years ago.

  • I am grateful for your post. I want to say that the expense of car insurance will vary from one policy to another, given that there are so many different facets which contribute to the overall cost. Such as, the make and model of the car will have a huge bearing on the cost. A reliable older family car will have a more economical premium than just a flashy fancy car.

发表评论

邮箱地址不会被公开。 必填项已用*标注

56 − = 53