php去掉编辑器自带样式,html怎么把默认样式去掉

html把默认样式去掉的方法:1、通过“*{padding:0;margin:0;box-sizing: border-box;font-size: 14px;}”全局去除默认样式 ;2、a标签去除默认样式;3、li标签去除默认样式等等。

a939708c18c4434257dcd03388477dd1.png

本文操作环境:Windows7系统、HTML5&&CSS3、Dell G3电脑

html标签默认样式去除大全

1、全局去除默认样式*{padding:0;margin:0;box-sizing: border-box;font-size: 14px;}

2、a标签去除默认样式a{text-decoration: none;color:#333;}

a:hover, a:visited, a:link, a:active {

color:#333;

// 设置使所有a标签的四种状态都和本身颜色保持一致,样式代码自己写

}

3、liul,ol{list-style: none;}

4、imgimg{

vertical-align:top;

border:none;

}

5、button.button{

border:0;

background-color:none

outline:none;

-webkit-appearance: none;//用于IOS下移除原生样式

}

6、select【推荐:HTML视频教程】select {

border: none;

appearance:none;

-moz-appearance:none;

-webkit-appearance:none;

/*在选择框的最右侧中间显示小箭头图片*/

background: url("http://ourjs.github.io/static/2015/arrow.png") no-repeat scroll right center transparent;

padding-right: 14px;

}

7、h1h1,h2,h3,h4,h5,h6{font-weight:normal;}

8、input,textareainput,textarea {

outline: none;

border: none;

}

textarea {

resize: none;

overflow: auto;

}

9、斜体 ii{font-style: normal;}

10、tabletable{border-collapse:collapse;border-spacing:0;}

11、去除input[type=number]加减号/*去除input[type=number]加减号*/

/* 谷歌 */

input::-webkit-outer-spin-button,

input::-webkit-inner-spin-button {

-webkit-appearance: none;

appearance: none;

margin: 0;

}

/* 火狐 */

input{

-moz-appearance:textfield;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值