<%@ page contentType="text/html; charset=UTF-8"%> <% String contextPath = request.getContextPath(); %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>CSS 样式Test</title> <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/pages/excel/cssTest.css"> </head> <body> <%-- <div class="event_left_tl"> <div class="fullchose"> <input class="eventcheckbox" type="checkbox" name="" value="" /> <span>全选</span> </div> </div> <div class="modal-content-row modal-content-row-btna"> 带空格的Class ID </div> <div class="modal-content-row modal-content-row-btna"> <div class="add-black-yes-btn ssssss">确 认</div> </div> --%> <div class="div-top"> Top</div> <div class="div-upper">2</div> <div class="div-bottom">3</div> <div class="div-left"> <div class="div-left2">s</div> </div> <div class="div-rigth">5-宽度70% DIV 居中</div> <div class="div-6"> <div class="div-6-1">6-1</div> <div class="div-6-2">6-2</div> <div class="div-6-3">6-3</div> </div> <div class="div-7"> <div class="div-7-1">7-1</div> <div class="div-7-2">7-2</div> </div> <script type="text/javascript" src="<%=request.getContextPath()%>/pages/excel/cssTest.js"></script> </body> </html>
@charset "utf-8"; body { overflow-y: hidden; background: #0c0c0c; } .event_left_tl .fullchose .eventcheckbox { margin: 8px 16px 0 7px; width: 18px; } /**选取 event_left_tl 下的子 ID .fullchose 下的 span 标签 **/ .event_left_tl .fullchose span { font-size:15px; } /**<div class="modal-content-row modal-content-row-btna"> 放modal-content-row modal-content-row-btna无法选的取, 可以放modal-content-row 或 modal-content-row-btna进行选取**/ .modal-content-row-btna{ font-size:20px; } .modal-content-row-btna{ margin-top: 0; } .add-black-yes-btn { background-color: rgba(0, 0, 0, 0); background-position: 0 -1434px; background-repeat: no-repeat; color: #fff; cursor: pointer; float: left; font: 12px/36px "Microsoft YaHei"; height: 37px; margin-right: 6px; text-align: center; text-shadow: 0 0 4px #a91717; width: 162px; } .div-top { width: 100%; height: 180px; background: none repeat scroll 0 0 #FFFF00; } .div-upper { width: 286px; height: 180px; padding: 15px 1 0 20px; background:#ff0000; /* background-image: url("../../images/login/login_wrap_bg.png"); */ /* background-repeat: repeat-y; 属性设置是否及如何重复背景图像。*/ position: absolute; top: 20px; left: 900px; } .div-bottom { width: 100%; height: 100px; background: none repeat scroll 0 0 #0000FF; } .div-left { width: 100%; height: 100px; background: none repeat scroll 0 0 #ececec; } .div-left2 { width: 50%; height: 100px; overflow: hidden; float: right; background: none repeat scroll 0 0 #FF00FF; } .div-rigth { width: 70%; height: 100px; margin: 0 auto; /* div居中 */ padding-top: 50px; overflow: hidden; background: none repeat scroll 0 0 #ff0000; } .div-6{ width: 100%; height: 100px; padding-top: 30px; /* 设置元素的上内边距(空间) */ overflow: hidden; background: none repeat scroll 0 0 #00FF00; } .div-6-1 { width: 30%; height: 100px; overflow: hidden; float: left; background:#ff0000; } .div-6-2 { width: 30%; height: 70px; overflow: hidden; float: left; background: none repeat scroll 0 0 #000000; position: absolute; left: 500px; } .div-6-3 { width: 30%; height: 100px; overflow: hidden; float: right; background: none repeat scroll 0 0 #0000FF; } .div-7{ width: 100%; height: 100px; padding-top: 0px; /* 设置元素的上内边距(空间) */ overflow: hidden; background: none repeat scroll 0 0 #00FF00; } .div-7-1 { width: 50%; height: 100px; overflow: hidden; float: left; background:#C0C0C0; } .div-7-2 { width: 50%; height: 100px; overflow: hidden; float: left; background:#FF0000; }
$(function() { //<div class="add-black-yes-btn ssssss">确 认</div> 选取时写 add-black-yes-btn ssssss无效, 能写 add-black-yes-btn 或 ssssss $(".ssssss").click(function(){ alert("确定 !"); }); }); function addBlackOnly(){ alert('Say Hello'); }
相关推荐
clip样式实现炫酷简单CSS动画特效----RGB走马灯边框线 直接复制可用 新手练习可用
CSS | 学院范围 | 招聘编码员 2CSS 练习01 - CSS 简介 02 - 标签样式 03 - CSS 属性类型 04 - 属性:边框、边距和填充 05 - 属性:颜色和排版 06 - Flexbox 简介 07 - Flexbox:对齐和对齐 08 - Flex-grow,fly -...
div+css布局。实例制作便于学习或者教学
html+css样式练习
练习使用css样式,正好结合练习做对话框使用测试练习
《CSS样式》 复习题 练习题
让我们练习使用W3CCSS验证器! 入门 将此课程分叉并克隆到您的本地环境中。 导航到终端中的目录,然后运行code . 在Visual Studio Code中打开文件。 最后,运行bundle安装实验室的依赖项。 继续运行rspec ,以查看...
pc端css的练习,主要是练习布局
CSS样式代码 目标 查看链接外部CSS文件。 查看编写选择器。 样式化文本内容。 介绍 在练习的这段代码中,我们将通过链接外部CSS文件为页面添加样式。 如果您在浏览器内的学习IDE中打开此实验,则所有需要遵循的...
CSS-ex-3 表格重塑从Interactive-HTML练习中复制html表单。 使用CSS根据对表单进行样式设置不要忘记提交并推送到您的新仓库。
CSS验证实验室:Issue Bot 9000学习目标将无效CSS更改为有效CSS介绍尽管当今的浏览器变得越来越有能力处理CSS中的错误,但是某些错误并不能总是被很好地捕获。 此变量可能使一致地应用样式或布局变得极为困难。 如何...
让我们练习使用W3CCSS验证器! 入门 将此课程分叉并克隆到您的本地环境中。 导航到终端中的目录,然后运行code . 在Visual Studio Code中打开文件。 最后,运行bundle安装实验室的依赖项。 继续运行rspec ,以查看...
让我们练习使用W3CCSS验证器! 入门 将此课程分叉并克隆到您的本地环境中。 导航到终端中的目录,然后运行code . 在Visual Studio Code中打开文件。 最后,运行bundle安装实验室的依赖项。 继续运行rspec ,以查看...
让我们练习使用W3CCSS验证器! 入门 将此课程分叉并克隆到您的本地环境中。 导航到终端中的目录,然后运行code . 在Visual Studio Code中打开文件。 最后,运行bundle安装实验室的依赖项。 继续运行rspec ,以查看...
4Geeks学院CSS练习教程 你好! 我是 ,很高兴有您在这里! :party_popper: :face_with_tears_of_joy: 学习代码很难,您需要指导! 如有任何问题,请。 您将学习以下概念: 使用三种方式将CSS应用于您的网站:内联...
CSS验证实验室:Issue Bot 9000学习目标将无效CSS更改为有效CSS介绍尽管当今的浏览器变得越来越有能力处理CSS中的错误,但是某些错误并不能总是被很好地捕获。 此变量可能使一致地应用样式或布局变得极为困难。 如何...
让我们练习使用W3CCSS验证器! 目标 将无效CSS更改为有效CSS 将无效CSS更改为有效CSS 脚步 在本课程中,我们将在css/style.css获取无效CSS并将其更改为有效。 点击“打开”按钮。 在浏览器中打开index.html。 ...
让我们练习使用W3CCSS验证器! 目标 将无效CSS更改为有效CSS 将无效CSS更改为有效CSS 脚步 在本课程中,我们将在css/style.css获取无效CSS并将其更改为有效。 点击“打开”按钮。 在浏览器中打开index.html。 ...
在本实验结束时, index.html具有style.css样式的主页应如下所示: 将样式编码在style.css中,并使用带有href属性和值stylesheet的rel属性的标记将其包含在index.html中。 您必须使用下面描述的特定选择器来设置...